package szzy

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type StudentScoresRouter struct {}

// InitStudentScoresRouter 初始化 成绩模块 路由信息
func (s *StudentScoresRouter) InitStudentScoresRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	CJRouter := Router.Group("CJ").Use(middleware.OperationRecord())
	CJRouterWithoutRecord := Router.Group("CJ")
	CJRouterWithoutAuth := PublicRouter.Group("CJ")
	{
		CJRouter.POST("createStudentScores", CJApi.CreateStudentScores)   // 新建成绩模块
		CJRouter.DELETE("deleteStudentScores", CJApi.DeleteStudentScores) // 删除成绩模块
		CJRouter.DELETE("deleteStudentScoresByIds", CJApi.DeleteStudentScoresByIds) // 批量删除成绩模块
		CJRouter.PUT("updateStudentScores", CJApi.UpdateStudentScores)    // 更新成绩模块
	}
	{
		CJRouterWithoutRecord.GET("findStudentScores", CJApi.FindStudentScores)        // 根据ID获取成绩模块
		CJRouterWithoutRecord.GET("getStudentScoresList", CJApi.GetStudentScoresList)  // 获取成绩模块列表
	}
	{
	    CJRouterWithoutAuth.GET("getStudentScoresPublic", CJApi.GetStudentScoresPublic)  // 成绩模块开放接口
	}
}
